<? Phpr_View::beginBlock("view") ?>
	<ul class="breadcrumbs">
		<li><a href="<?= url('/system/settings') ?>">Settings</a></li>
		<li><a href="<?= url('/system/email_templates') ?>">Email Templates</a></li>
		<li><?= $this->app_page_title ?></li>
	</ul>
	
	<?= flash() ?>

	<? if (!isset($fatalError)): ?>
		<div class="scoreboardReport">
			<ul>
				<li class="last">
					<h3>Email layout</h3>
					<p><?= h($form_model->name) ?></p>
				</li>
			</ul>
			<div class="clear"></div>
		</div>
	
		<div class="form800">
			<?= Phpr_Form::openTag() ?>
				<? $this->formRender() ?>

				<?= backend_ajax_button('Save', 'edit_onSave', array(), "prepareFunction: function(){phprTriggerSave();}") ?>
				<?= backend_ajax_button('Cancel', 'edit_onCancel') ?>
			
				<div class="clear"></div>
			</form>
		</div>
	<? else: ?>
		<p><a href="<?= url('/shop/email_templates') ?>">Return to the email template list</a></p>
	<? endif ?>
<? Phpr_View::endBlock() ?>